using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Northwoods.Go.Xml;

namespace Rules.Diagram
{
    [Serializable]
    public class EffectInfo : Info
    {
        public EffectInfo(RuleNode node) : base(node) { }

        public override String ToString()
        {
            return "Param1: " + this.Param1;
        }

        [Category("Effect"), Description("an effect parameter")]
        public String Param1
        {
            get { return myParam1; }
            set { myParam1 = value; }
        }

        public override void GenerateAttributes(GoXmlTransformer x)
        {
            x.WriteAttrVal("Param1", this.Param1);
        }

        public override void ConsumeAttributes(GoXmlTransformer x)
        {
            this.Param1 = x.StringAttr("Param1", "");
        }

        private String myParam1 = "";
    }
}
